import React from 'react';
import UserDocuments from '../user/UserDocuments';
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'

import { downloadDocument, fetchOnboardingTemplate, resetOnboardingTemplates } from '../../actions/onboarding.hr.action';
import { fetchUserProfile } from '../../actions/user.action';

export default
@connect(null, dispatch => ({actions: bindActionCreators({ fetchOnboardingTemplate, resetOnboardingTemplates, downloadDocument, fetchUserProfile }, dispatch)}))
class CompanyDocuments extends React.Component {
  render() {
    return <UserDocuments {...this.props} {...this.props.actions}/>
  }
}
